package akka;

import lombok.Data;

import java.util.function.Consumer;
import java.util.function.Function;

/**
 * @author : SandKing
 * @CreateDate : 2019/4/29 16:13
 * @Description ：Please describe this document
 */
@Data
public class AkkaAsk<K,V> {
    private K parameter;
    private Function<K,V> function;

    private V result;
    private Consumer<V> callback;

    public AkkaAsk(K parameter, Function<K, V> function, Consumer<V> callback) {
        this.parameter = parameter;
        this.function = function;
        this.callback = callback;
    }
}
